<template>
 <div>
  御剑乘风来,除魔天地间!
  <button @click="isShow = !isShow">显示/隐藏</button>
  <transition appear>
    <h1 v-show="isShow">你好啊,小姐姐</h1>
  </transition>
 </div>
</template>
<script>
export default{
    name:'TextCom',
    data () {
        return {
            isShow:true
        }
    },
    created () {
    },
    computed:{
    },
    methods:{
    }
}
</script>
<style lang='less'  scoped>
    h1{
      background-color: skyblue;
    }
    .v-enter-active{
      animation: move 1s;
    }
    .v-leave-active{
      animation: move 1s reverse;
    }
    @keyframes move {
      from{
        transform: translateX(-100%);
      }
      to{
        transform: translateX(0px);
      }
    }
</style>
